package com.zbf.web;

import com.zbf.CelueApp.ACelue;
import com.zbf.CelueApp.ACelueFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/7/26  15:32
 * 描述:
 */
@RestController
public class TestWebCOntrioller {

    @RequestMapping
    public Object login(@RequestBody Map<String,Object> map){
        /*
        if(map.get("userName")!=null){

        }else if(map.get("phone")!=null){

        }*/

        ACelue type = ACelueFactory.getCelue(map.get("type").toString());

        Object denglu = type.denglu();

        return denglu;

    }

}
